package cn.edu.csust.coursecard.dao;

import cn.edu.csust.coursecard.dao.entity.Notice;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NoticeMapper {

    int insertSelective(Notice record);

    List<Notice> selectByUserId(Integer userId);

    List<Notice> selectGlobalAndUser(Integer userId);

    Notice selectNoticeByNoticeId(Integer noticeId);

    List<Notice> selectAll();

    int deleteByPrimaryKey(Integer id);

    int deleteAll();

}